﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BDD.TicTacToe.Domain;
using NUnit.Framework;

namespace BDD.TicTacToe.Core.Tests.Domain_Specs
{
    [TestFixture]
    public class When_creating_a_new_game
    {
        private Game _sut;
        private string _playerX;
        private string _playerO;

        [SetUp]
        public void When()
        {
            _playerX = "Scott";
            _playerO = "Simon";

            _sut = new Game(_playerX, _playerO);
        }


        [Test]
        public void Then_the_Game_should_known_who_playerX_is()
        {
            Assert.That(_sut.PlayerX, Is.EqualTo(_playerX));
        }

        [Test]
        public void Then_the_Game_should_known_who_playerO_is()
        {
            Assert.That(_sut.PlayerO, Is.EqualTo(_playerO));
        }

        [Test]
        public void Then_the_next_player_to_place_his_token_should_be_player_X()
        {
            Assert.That(_sut.NextPlayerToPlaceToken, Is.EqualTo(_playerX));
        }
    }
}
